{% block content %}
<h4>密碼設定</h4>
<h5 style="color:red" id="id_error">{{ error }}</h5>
<h5 style="color:blue" id="id_info">{{ info }}</h5>
<h5 style="color:green" id="id_success">{{ success }}</h5>

<form action="passwd" method="post" onsubmit="document.getElementsByName('submit')[0].readonly=1;document.getElementsByName('previous')[0].readonly=1">{% csrf_token %}
    {{ form.as_p }}
    <input type="submit" name="previous" value="回上頁" />
    <input type="submit" name="submit" value="確定修改" onclick="document.getElementById('id_info').innerHTML='修改中..請稍候..';"/>
</form>
    
{% endblock %}
